package org.masterinftel.scrumpmt.activities;
import org.masterinftel.scrumpmt.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class PlanningPokerActivity extends Activity{
    
    private Intent intent;
    
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.planningpoker);

        intent = new Intent(PlanningPokerActivity.this, PlanningPokerCardActivity.class);
        
        ((Button)findViewById(R.id.btnCard_1_2)).setOnClickListener(mCard_1_2);
        ((Button)findViewById(R.id.btnCard_1)).setOnClickListener(mCard_1);
        ((Button)findViewById(R.id.btnCard_2)).setOnClickListener(mCard_2);
        ((Button)findViewById(R.id.btnCard_3)).setOnClickListener(mCard_3);
        ((Button)findViewById(R.id.btnCard_5)).setOnClickListener(mCard_5);
        ((Button)findViewById(R.id.btnCard_8)).setOnClickListener(mCard_8);
        ((Button)findViewById(R.id.btnCard_13)).setOnClickListener(mCard_13);
        ((Button)findViewById(R.id.btnCard_20)).setOnClickListener(mCard_20);
        ((Button)findViewById(R.id.btnCard_40)).setOnClickListener(mCard_40);
        ((Button)findViewById(R.id.btnCard_100)).setOnClickListener(mCard_100);
        ((Button)findViewById(R.id.btnCard_question)).setOnClickListener(mCard_question);
        ((Button)findViewById(R.id.btnCard_infinite)).setOnClickListener(mCard_infinite);
    }
    
    OnClickListener mCard_1_2 = new OnClickListener() {
        public void onClick(View view) {
            intent.putExtra("card", R.drawable.card_1_2);
            startActivity(intent);          
        }
    };
  
    OnClickListener mCard_1 = new OnClickListener() {
        public void onClick(View view) {
            intent.putExtra("card", R.drawable.card_1);
            startActivity(intent);          
        }
    };
  
    
    OnClickListener mCard_2 = new OnClickListener() {
        public void onClick(View view) {
            intent.putExtra("card", R.drawable.card_2);
            startActivity(intent);          
        }
    };
    
    OnClickListener mCard_3 = new OnClickListener() {
        public void onClick(View view) {
            intent.putExtra("card", R.drawable.card_3);
            startActivity(intent);          
        }
    };
    
    OnClickListener mCard_5 = new OnClickListener() {
        public void onClick(View view) {
            intent.putExtra("card", R.drawable.card_5);
            startActivity(intent);          
        }
    };

    OnClickListener mCard_8 = new OnClickListener() {
        public void onClick(View view) {
            intent.putExtra("card", R.drawable.card_8);
            startActivity(intent);          
        }
    };

    
    OnClickListener mCard_13 = new OnClickListener() {
        public void onClick(View view) {
            intent.putExtra("card", R.drawable.card_13);
            startActivity(intent);          
        }
    };

    OnClickListener mCard_20 = new OnClickListener() {
        public void onClick(View view) {
            intent.putExtra("card", R.drawable.card_20);
            startActivity(intent);          
        }
    };

    OnClickListener mCard_40 = new OnClickListener() {
        public void onClick(View view) {
            intent.putExtra("card", R.drawable.card_40);
            startActivity(intent);          
        }
    };


    OnClickListener mCard_100 = new OnClickListener() {
        public void onClick(View view) {
            intent.putExtra("card", R.drawable.card_100);
            startActivity(intent);          
        }
    };

    OnClickListener mCard_question = new OnClickListener() {
        public void onClick(View view) {
            intent.putExtra("card", R.drawable.card_question);
            startActivity(intent);          
        }
    };

    OnClickListener mCard_infinite = new OnClickListener() {
        public void onClick(View view) {
            intent.putExtra("card", R.drawable.card_inf);
            startActivity(intent);          
        }
    };

}
